﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.studentInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int stuId=(Convert.ToInt32(strid));
					ShowInfo(stuId);
				}
			}
		}
		
	private void ShowInfo(int stuId)
	{
		Maticsoft.BLL.studentInfo bll=new Maticsoft.BLL.studentInfo();
		Maticsoft.Model.studentInfo model=bll.GetModel(stuId);
		this.lblstuId.Text=model.stuId.ToString();
		this.lblstuName.Text=model.stuName;
		this.lblstusex.Text=model.stusex;
		this.lblstuAddress.Text=model.stuAddress;
		this.lblstuNum.Text=model.stuNum;
		this.lblstate.Text=model.state.ToString();
		this.lblstuexamroom.Text=model.stuexamroom;
		this.lblstusession.Text=model.stusession.ToString();
		this.lblstuseat.Text=model.stuseat.ToString();
		this.lblremark.Text=model.remark;
		this.lblstuTime.Text=model.stuTime;
		this.lblstuPost.Text=model.stuPost;
		this.lblstuPhone.Text=model.stuPhone;
		this.lblstuType.Text=model.stuType;
		this.lblstuPic.Text=model.stuPic;

	}


    }
}
